package com.imageim.yimirror.common.ui.face;

import com.imageim.yimirror.common.EnviromentConfig;
import com.sensetime.stmobileapi.STMobile106;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Bruce.Zhou on 2017/12/13.
 */

public class ScanerBean {
    private float scanY;
    private STMobile106 face;
    private boolean isScanUp;
    private PathInfo lineBean;
    private List<CircleBean> circleBeanList;
    public static int[] attrPointIndexs = {39, 104, 83, 102}; // 代表四个脸部的部位

    public ScanerBean() {
        if (EnviromentConfig.IS_MIRROR) {
            attrPointIndexs = new int[]{65, 62, 82, 91};
        }
        circleBeanList = new ArrayList<>();
        for (int i = 0; i < 4; i++) {
            CircleBean circle = new CircleBean();
            circle.setOutBigArc(new ArcBean(0, 120, 70));
            circle.setOutSmallArc(new ArcBean(180, 90, 70));
            circle.setInBigArc(new ArcBean(-60, 120, 53));
            circle.setInMiddleArc(new ArcBean(85, 45, 53));
            circle.setInSmallArc(new ArcBean(175, 30, 53));
            switch (i) {
                case 0:
                    circle.setText("眉");
                    break;
                case 1:
                    circle.setText("眼");
                    break;
                case 2:
                    circle.setText("脸");
                    break;
                case 3:
                    circle.setText("嘴");
                    break;
                default:
                    break;
            }
            circleBeanList.add(circle);
        }
    }

    public List<CircleBean> getCircleBeanList() {
        return circleBeanList;
    }

    public void setCircleBeanList(List<CircleBean> circleBeanList) {
        this.circleBeanList = circleBeanList;
    }

    public float getScanY() {
        return scanY;
    }

    public void setScanY(float scanY) {
        this.scanY = scanY;
    }

    public STMobile106 getFace() {
        return face;
    }

    public void setFace(STMobile106 face) {
        this.face = face;
    }

    public boolean isScanUp() {
        return isScanUp;
    }

    public void setScanUp(boolean scanUp) {
        isScanUp = scanUp;
    }

    public PathInfo getLineBean() {
        return lineBean;
    }

    public void setLineBean(PathInfo lineBean) {
        this.lineBean = lineBean;
    }
}
